package org.darkforest.enums;

/**
 * Created by pc on 2015/12/22.
 * 网站用户菜单
 */
public enum MemberMenuEnum {

    ORDERLIST("orderList", "实物交易订单"),
    GOODFAVORITESLIST("goodFavoritesList", "我的收藏"),
    ORDEREVALUATIONLIST("orderEvaluationList", "交易评价/晒单"),
    POINTSLIST("pointsList", "我的积分"),
    VOUCHERLIST("voucherList", "我的代金券"),
    MONEYLIST("moneyList", "退款及退货"),
    COMPLAINTLIST("complaintList", "交易投诉"),
    CONSULTLIST("consultList", "商品咨询"),
//    SERVICELIST("serviceList", " 平台客服"),
    ACCTSETTING("acctSetting", " 账户信息"),
    ACCTSAFE("acctSafe", "账户安全"),
    ADDRESSLIST("addressList", "收货地址"),
    MSGLIST("msgList", "我的消息");
//    SHAREMANAGER("shareManager", " 分享绑定");

    private String value;
    private String text;

    private MemberMenuEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public static MemberMenuEnum getByValue(String value) {
        for (MemberMenuEnum e : MemberMenuEnum.values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }


    public String getText() {
        return text;
    }
}
